package BlogService.beans;

import java.util.Date;
import java.util.HashSet;
import BlogService.beans.Article;
import BlogService.beans.Commentaire;
import BlogService.beans.Interest;

public class User {
	private int idUser;
	private int role;
	private String nom;
	private String prenom;
	private String email;
	private String password;
	private String adresse;
	private String ville;
	private String codePostal;
	private String avatarPath;
	private int colorPreference;
	private Date dateRegistration;
	public HashSet<Article> articlesUser = new HashSet<Article>();
	public HashSet<Commentaire> commentairesUser = new HashSet<Commentaire>();
	public HashSet<Interest> interestsUser = new HashSet<Interest>();
	public Pays paysUser;

	public User() {
		throw new UnsupportedOperationException();
	}

	public String toString() {
		throw new UnsupportedOperationException();
	}

	public void setIdUser(int pIdUser) {
		this.idUser = pIdUser;
	}

	public int getIdUser() {
		return this.idUser;
	}

	public void setRole(int pRole) {
		this.role = pRole;
	}

	public int getRole() {
		return this.role;
	}

	public void setNom(String pNom) {
		this.nom = pNom;
	}

	public String getNom() {
		return this.nom;
	}

	public void setPrenom(String pPrenom) {
		this.prenom = pPrenom;
	}

	public String getPrenom() {
		return this.prenom;
	}

	public void setEmail(String pEmail) {
		this.email = pEmail;
	}

	public String getEmail() {
		return this.email;
	}

	public void setPassword(String pPassword) {
		this.password = pPassword;
	}

	public String getPassword() {
		return this.password;
	}

	public void setAdresse(String pAdresse) {
		this.adresse = pAdresse;
	}

	public String getAdresse() {
		return this.adresse;
	}

	public void setVille(String pVille) {
		this.ville = pVille;
	}

	public String getVille() {
		return this.ville;
	}

	public void setCodePostal(String pCodePostal) {
		this.codePostal = pCodePostal;
	}

	public String getCodePostal() {
		return this.codePostal;
	}

	public void setAvatarPath(String pAvatarPath) {
		this.avatarPath = pAvatarPath;
	}

	public String getAvatarPath() {
		return this.avatarPath;
	}

	public void setColorPreference(int pColorPreference) {
		this.colorPreference = pColorPreference;
	}

	public int getColorPreference() {
		return this.colorPreference;
	}
}